# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gns3-gui
pkgver=2.2.12
pkgrel=0
pkgdesc="GNS3 network simulator. Graphical user interface package."
url="https://github.com/GNS3/gns3-gui"
arch="noarch !armhf" # armhf blocked by py3-qt5 -> qt5-qtdeclarative
license="GPL-3.0-or-later"
depends="python3 py3-psutil-gns3 py3-jsonschema-gns3 py3-raven
	py3-qt5 qt5-qtsvg py3-sip py3-sentry-sdk"
makedepends="python3-dev py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNS3/gns3-gui/archive/v$pkgver.tar.gz
requirements.patch"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 "$builddir"/resources/images/gns3_icon_256x256.png "$pkgdir"/usr/share/pixmaps/gns3.png
	install -Dm644 "$builddir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="7e7f4b7dcaf170b70ef9fb3557afb0d21e8347fef96db485db8ec880204bc261803956158e522bcd0f898204a8f6346158379cbd251592c4bdbc9a2e81c74025  gns3-gui-2.2.12.tar.gz
84bea47705832cd8195d3bda2992c606303648bf8c9ce92452dbcc6ae645985f9df1c09aef228cec5a1eac56cc04f9523e55e3fdf874f1573a45ff9ba5b8761a  requirements.patch"
